home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / fscheck / fscheck.test < prev    next >
Text File  |  1989-02-28  |  3KB  |  75 lines

  1. The following is a list of the test cases that fscheck was run on. After each
  2. error in the file system is the correction that fscheck made.
  3.  
  4.     1 allocated file descriptor marked free in descriptor bitmap
  5.     bitmap corrected
  6.     2 free file descriptor marked allocated in descriptor bitmap
  7.     bitmap corrected
  8.     3 allocated data block marked free in data block bitmap
  9.     bitmap corrected
  10.     4 free data block marked allocated in data block bitmap
  11.     bitmap corrected
  12.     5 file descriptor with invalid magic number
  13.     descriptor marked free in bitmap
  14.     6 file with incorrect link count
  15.     link count set to value determined by traversing directory tree
  16.     7 file with size < data blocks pointed to by descriptor
  17.     size adjusted
  18.     8 file with incorrect block count
  19.     block count corrected
  20.     9 directory with hole
  21.     hole filled in with empty entries
  22.     10 invalid index in indirect block
  23.     hole created
  24.     11 invalid direct block number
  25.     hole created
  26.     12 invalid indirect block number
  27.     hole created
  28.     13 fragment that is not last block in file
  29.     block of data starting at fragment copied to another block
  30.     14 part of a block shared with another file
  31.     block copied
  32.     15 direct block shared with another file
  33.     block copied
  34.     16 block 0 in something other than the root directory
  35.     block copied
  36.     17 doubly indirect block shared with another file
  37.     block and all sub-blocks copied
  38.     18 doubly indirect block shared, but block contains invalid index
  39.     hole created
  40.     19 unreferenced file
  41.     added to lost+found
  42.     20 unreferenced directory
  43.     added to lost+found
  44.     21 empty directory 
  45.     changed to a file
  46.     22 root directory marked free
  47.     root reconstructed
  48.     23 root directory is a file
  49.     root reconstructed
  50.     24 root fd zeroed and block 0 zeroed
  51.     root reconstructed
  52.     25 directory with invalid record length
  53.     record length corrected
  54.  
  55. Notes:
  56.     sharing was tested for both deleting and copying blocks
  57.  
  58. There are some configurations of files that are somewhat uncommon and may
  59. pose a problem for fscheck. The following were tested to make sure fscheck
  60. does not modify them.
  61.     1 file with hole
  62.     2 empty file
  63.     3 file with size > data blocks
  64.  
  65.  
  66. Fscheck has a number of command line options. The following were tested.
  67. The following functionality of fscheck was tested
  68.     1 initialize bad block file descriptor
  69.     2 update host id
  70.     3 output copied to file
  71.     4 output copied to file on same partition (file empty)
  72.     5 output copied to file on same partition (file not empty)
  73.     6 change output buffer size
  74.     7  heap size limited
  75.